package com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * Hello world!
 */

//@EnableAsync//启动异步任务
//@EnableScheduling//启动定时任务
//@EnableCaching//启用缓存
//@ComponentScan(value = "com.macaline", useDefaultFilters = false, excludeFilters = {@ComponentScan.Filter(type = FilterType.CUSTOM, classes = {ComponetFilter.class})})
@SpringBootApplication
//@ComponentScan(value = "com.macaline", useDefaultFilters = false, excludeFilters = {@Filter(type = FilterType.CUSTOM, classes = {ComponetFilter.class})})
//@EnableAutoConfiguration
//@ComponentScan(value = "com.macaline", excludeFilters = {
//					@Filter(type = FilterType.ANNOTATION, classes = {Controller.class}
//					)
//})
//@ComponentScan(value = "com.macaline", useDefaultFilters = false, includeFilters = {
//		@Filter(type = FilterType.ANNOTATION, classes = {Service.class})
//})
//@ComponentScan(value = "com.macaline", includeFilters = {
//		@Filter(type = FilterType.CUSTOM, classes = {ComponetFilter.class}), @Filter(type = FilterType.ASSIGNABLE_TYPE ,
//				classes = {TestConfig.class})
//}, useDefaultFilters = false)
public class App {

    public static ApplicationContext applicationContext;

    public static void main( String[] args ){
        applicationContext = SpringApplication.run(App.class, args);
    }
}
